/*
 * @Author: Automator
 * @Date: 2018-05-22 18:19:08
 * @description: 
*/

 const  api = {

     /*
     * 方法描述:根据用户Id获取用户信息,请求方式:GET,参数:userId,返回值:SysUserVO,是否可用:ok
     * @param userId  userId  Required:[true]  Type:[string]  Location:[path]
     */
    'getSysUserById': {url: '/cms/v1/api/user/info/{userId}', method: 'get'},

     /*
     * 方法描述:获取用户列表,请求方式:GET,参数:sysUserSearchDto,返回值:PageResult<SysUserInfoVO>,是否可用:ok
     * @param pageParam.pageIndex    Required:[false]  Type:[integer]  Location:[query]
     * @param pageParam.pageSize    Required:[false]  Type:[integer]  Location:[query]
     * @param roleId  角色Id  Required:[false]  Type:[string]  Location:[query]
     * @param userName  用户名称  Required:[false]  Type:[string]  Location:[query]
     */
    'sysUserPage': {url: '/cms/v1/api/userpage', method: 'get'},

     /*
     * 方法描述:根据角色Id获取用户信息,请求方式:GET,参数:roleId,返回值:List<SysUser>,是否可用:ok
     * @param roleId  roleId  Required:[true]  Type:[string]  Location:[path]
     */
    'getByRoleId': {url: '/cms/v1/api/role/user/{roleId}', method: 'get'},

     /*
     * 方法描述:修改用户,请求方式:PUT,参数:userRecord,返回值:JsonResult,是否可用:ok
     * @param userRecord  userRecord  Required:[true]  Type:[]  Location:[body]
     * @param tokenUserId  tokenUserId  Required:[false]  Type:[string]  Location:[query]
     */
    'sysUserUpdate': {url: '/cms/v1/api/userupdt', method: 'put'},

     /*
     * 方法描述:根据用户Id删除用户,请求方式:GET,参数:userId,返回值:JsonResult,是否可用:ok
     * @param userId  userId  Required:[true]  Type:[string]  Location:[path]
     */
    'sysUserDelete': {url: '/cms/v1/api/userdel/{userId}', method: 'delete'},

     /*
     * 方法描述:添加用户,请求方式:POST,参数:sysUserDto,返回值:JsonResult,是否可用:ok
     * @param sysUserDto  sysUserDto  Required:[true]  Type:[]  Location:[body]
     * @param tokenUserId  tokenUserId  Required:[false]  Type:[string]  Location:[query]
     */
    'sysUserInsert': {url: '/cms/v1/api/userisrt', method: 'post'},

     /*
     * 方法描述:用户登录成功回调,请求方式:GET,参数:null,返回值:JsonResult,是否可用:ok
     * @param tokenUserId  tokenUserId  Required:[true]  Type:[string]  Location:[query]
     */
    'successLoginCallback': {url: '/cms/v1/api/successLoginCallback', method: 'get'},

     /*
     * 方法描述:修改用户密码,请求方式:PUT,参数:passwordDto,返回值:JsonResult,是否可用:ok
     * @param passwordDto  passwordDto  Required:[true]  Type:[]  Location:[body]
     * @param tokenUserId  tokenUserId  Required:[false]  Type:[string]  Location:[query]
     */
    'changePwd': {url: '/cms/v1/api/user/changepwd', method: 'put'},

};

 export default api;
